﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BomberManServer.Gaming.Object;

namespace BomberManServer.Gaming.Object.Stats
{
    public class TeamStats
    {
        public UInt16 teamID;
        public UInt16 RoundWin { get; set; }
        public List<PlayerStats> players;

        public TeamStats(Team team)
        {
            this.players = new List<PlayerStats>();
            this.teamID = team.id;
            this.RoundWin = 0;
            foreach (Player player in team.players)
            {
                this.players.Add(new PlayerStats( player.uid, this.teamID));
            }
        }

       
        public void winRound()
        {
            this.RoundWin++;
        }
    }
}
